/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('productcat_r', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true
    },
    title: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    zindex: {
      type: DataTypes.STRING(16),
      allowNull: true
    },
    img_url: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    parentid: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    }
  }, {
    tableName: 'productcat_r'
  });

  Model.associate = function() {

  }

  return Model;
};
